//
//  AddRepairItemSubView.h
//  HondaPro_2
//
//  Created by Eric on 13-6-28.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainMenuDataModel.h"
#import "DDPopoverBackgroundView.h"
#import "popContentViewController.h"

@interface AddRepairItemSubView : UIView <UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,ContentViewControllerDelegate,UIAlertViewDelegate>
{
    UITextField *repairIdTxt;//维修项目号text
    UITextField *repairNameTxt;//维修项目名text
    UITextField *pinyinmaTxt;//拼音码text
    UITextField *standardWorkHourTxt;//标准工时text
    UITextField *workHourPriceTxt;//自厂工时text
    UITextField *workHourChargeTxt;//考核工时text
    UITextField *repairCountTxt;//作业数量text
    UITextField *repairWorkChargeTxt;//工费text
    UITextField *zuoyequfenTxt;//作业区分text
    UITextField *zhengzhuangdaimaTxt;//症状代码
    UITextField *guzhangdaimaTxt;//故障代码
    UITextField *chulidaimaTxt;//处理代码
    
    UIButton *charDiffBtn;//收费区分Btn
    UIButton *_zhengZhuangDaiMaBtn;//症状代码Btn
    UIButton *_guZhangDaiMaBtn;//故障代码Btn
    UIButton *_chuLiDaiMaBtn;//处理代码Btn
    
    UILabel *repairGroupBtn;
    
    UITableView *tableViewDis;
    
    //FRT Flag
    bool bFRTFlag;//设置FRT标识，标识出是否选择FRT
    
  
    
    //FRT车型列表
    NSArray *_arrFRTList;
    //车型对应的FRT维修项目列表
    NSArray *_arrRepairItemListBasedOnFRT;
    //用于显示的FRT列表，设立本属性的目的在于列表中显示的有可能是FRT列表中的部分项目，例如搜索结果
    NSMutableArray *_arrRepairItemListToDisplay;
    
    //基本费率
    CGFloat _baseChargeForWarranty;
    CGFloat _baseChargeForNonWarranty;
    
    //下拉菜单属性
    popContentViewController *contentCon;
    UIPopoverController *popCon;
    
    //作业区分下拉菜单的属性
    NSArray *_arrOriginalDataForOperationType;
    NSMutableArray *_arrDisDataForOperationType;
    
    //维修单价
    CGFloat fDanjia;
    
    UIAlertView *_alertViewRepeated;
}
@property (strong,nonatomic) NSArray *arrOriginalDataForServiceType;
@property(nonatomic,assign)double discount;
/** 工时单价 */
@property(nonatomic,copy)NSString *labourPrice;
/** 工单的工时单价 */
@property(nonatomic,copy)NSString *jobSheetLabourPrice;
/**
 车型
 */
@property(nonatomic,copy)NSString*carType;
//车型类型code
@property(nonatomic,copy)NSString *carTypeCode;
@end
